import { request } from "@/utils/request";

// 通知-消息查询-分页（已读、未读公用）
export const readList = (data: any = {}) => {
  return request({
    url: "/notice/readList",
    method: "POST",
    data,
  });
}
// 消息已读
export const read = (data: any = {}) => {
  return request({
    url: "/notice/read",
    method: "POST",
    data,
  });
}

// 消息详情
export const readInfo = (data: any = {}) => {
  return request({
    url: "/notice/info",
    method: "POST",
    data,
  });
}


// 留言-http://localhost:8080/leshi/AppComment/pageList）
// 留言查询-分页（已读、未读公用）
export const appCommentPageList = (data: any = {}) => {
  return request({
    url: "/AppComment/pageList",
    method: "POST",
    data,
  });
}
// 留言已读 http://localhost:8080/leshi/AppComment/updateRead
export const appCommentUpdateRead = (data: any = {}) => {
  return request({
    url: "/AppComment/updateRead",
    method: "POST",
    data,
  });
}

// 全部已读 http://localhost:8080/leshi/notice/updateAll
export const updateAll = (data: any = {}) => {
  return request({
    url: "/notice/updateAll",
    method: "POST",
    data,
  });
}

// 消息清除-已读的 http://localhost:8080/leshi/notice/removeAll
export const removeAll = (data: any = {}) => {
  return request({
    url: "/notice/removeAll",
    method: "POST",
    data,
  });
}